package org.javeboy.coolmeeting.controller;

import org.javeboy.coolmeeting.model.Department;
import org.javeboy.coolmeeting.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DepartmentController {
    @Autowired
    DepartmentService departmentService;
    @GetMapping("/dep")
    public  void  getDepById(Integer id){
        Department dep = departmentService.getDepById(id);
        System.out.println("dep="+ dep);
    }
}
